package com.team.sns.services.impl;

import java.util.List;

import com.team.sns.entities.Permissions;
import com.team.sns.persistence.impl.JPAProvider;
import com.team.sns.services.PermissionService;

public class PermissionServiceBean extends JPAProvider<Permissions> implements PermissionService{

	public List<Permissions> getPerByActor(Integer actorId) {
		String hql = "form Permission where actorId = :actorId";
		Object[] arr = new Object[1];
		arr[0] = actorId;

		List<Permissions> lst = this.getResultList(0, 100, hql, arr);
		return lst;
	}
	

}
